package com.xiguaji.tiktok.utils.jdbc;

import java.io.Serializable;
import java.util.List;

public class PageResponse<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    private List<T> list;
    private int totalCount;

    /**
     * Constructor.
     * @param list the list of paginate result
     */
    public PageResponse(List<T> list, int totalCount) {
        this.list = list;
        this.totalCount = totalCount;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }
}
